﻿@model SoftHotel.Models.DocCompraDAO

@{
    ViewBag.Title = "Buscar";
}

@using (Html.BeginForm())
{   
     @Html.ValidationSummary()
                                                                   
    <h1><strong>Resultado Búsqueda Productos</strong></h1>
    <br />
    <table id="buscar" rules="all" style="background-color: #BDBDBD; width: 900px; margin-bottom: 0px;" border="1">
	    <tr>
            <td>            		        
                <input type="submit" name="button" value="Regresar" />
            </td>
	    </tr>
    </table>	

    <br />
    <br />

    
<table id="MainContent_Table2" rules="all" style="border-color: Black; width: 900px; margin-bottom: 0px;" border="1">
     <tr>	    
	    <td style="font-weight: bold; width: 30px;" align="center">ID</td>
	    <td style="font-weight: bold; width: 220px;" align="center">Proveedor</td>
	    <td style="font-weight: bold; width: 170px;" align="center">Monto total</td>
        <td style="font-weight: bold; width: 210px" align="center">Estado</td>
        <td style="font-weight: bold; width: 40px;" align="center"></td>
	</tr>
    @{
    foreach (var prod in Model.dbuscadis)
    {  
            <tr>		        
		        <td style="font-weight: bold; width: 30px;" align="center">@Html.DisplayFor(modelItem => prod.idDocCompra)</td>
		        <td style="font-weight: bold; width: 220px;" align="center">@Html.DisplayFor(modelItem => prod.idProveedor)</td>
		        <td style="font-weight: bold; width: 170px;" align="center">@Html.DisplayFor(modelItem => prod.montoTotal)</td>
                <td style="font-weight: bold; width: 80px" align="center">@Html.DisplayFor(modelItem => prod.estado)</td>		        
                <td style="font-weight: bold; width: 40px;" align="center"><a href = "/OrdenCompra/Editar?descripcion=@prod.idDocCompra"><img border="0" src="@Href("~/Content/Images/edit.jpg")"></a><a href = "/Producto/Eliminar?descripcion=@prod.idDocCompra"><img border="0" src="@Href("~/Content/Images/delete.jpg")"></a></td>
	        </tr>
    }
        }      
</table>
}
